Repository navigation
Conversation
…ters
Every adapter now resolves paths the same way: a path is always relative
to the adapter's root ("/a", "./a" and "a" are the same file) and the
base path says where that root is. An empty base selects the backend's
default root: the current directory on native hosts, the fallback mount
on ESP32, the filesystem root elsewhere.
- Add allocation-free Path.h (normalize/join/copy_base/persistent_mount)
- Honor the base path in the POSIX and stdio adapters
- Accept relative paths on the ESP32 LittleFS/SPIFFS/SD adapters, which
also stops init()'s write check from reformatting on every boot
- Copy base paths into fixed adapter buffers and keep the LittleFS mount
point in static storage, since Arduino's FS layer keeps the pointer
- Native behavior change: with the default base, absolute paths now
resolve under the current directory; pass "/" for host-absolute paths
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ters
Every adapter now resolves paths the same way: a path is always relative to the adapter's root ("/a", "./a" and "a" are the same file) and the base path says where that root is. An empty base selects the backend's default root: the current directory on native hosts, the fallback mount on ESP32, the filesystem root elsewhere.
Problem
Solution
Compatibility
Testing
Platforms tested (and how):
pio test -e native)Platforms not tested, and why:
Docs
docs// CHANGELOG updated where user-visible behavior, build flags, configuration macros or APIs changed